//All this will be gone soon. Just for a bit of quick debugging

debug_patch:
    bkpt #0
debug_patch2:
    mov pc, #0 //Soft reset fail right here...

//Break on data abort exception rather than reset straightaway
.extern clear_cache
.global hookDataAbortException
hookDataAbortException:
    ldr r0, =0xa4000010
    
    ldr r1, debug_patch
    str r1, [r0]
    
    ldr r1, debug_patch2
    str r1, [r0, #4]
    
    push {lr}
    bl clear_cache
    pop {pc}